package com.xjoyt.pay.master.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;

import com.xjoyt.pay.master.dao.DistributorPreferenceRepositoryCustom;
import com.xjoyt.pay.master.po.DistributorPreference;
import com.xjoyt.pay.repository.Repository;

public interface DistributorPreferenceRepository
		extends Repository<DistributorPreference>, DistributorPreferenceRepositoryCustom {

	@Query("select a from DistributorPreference a where a.distributor.no = ?1  ")
	Page<DistributorPreference> findAllByNo(String no, Pageable pageable);
}
